package cn.tedu.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @outhor wuyanzu
 * @date 2021- 04- 07
 */
@FeignClient(name="storage")
public interface StorageClient {
    @GetMapping("/decrease")
    void decrease(@RequestParam("productId") long productId,
                  @RequestParam("count") Integer count);
}
